#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n,i,sum;
	sum = 0;
	printf("Enter a number:");
	scanf("%d",&n);
	for (i = 1; i <= n; i++)
	{
		sum = sum + i;
		printf(" %d", sum);
	}
	return 0;

}